// +build oracle

package main

import (
	"github.com/micro-plat/hydra"
)

func init() {

	hydra.OnReady(func() {
		if hydra.G.IsDebug() {
			hydra.Conf.API("9090")
			hydra.Conf.Vars().DB().Oracle("db", "hjjy", "123456", "orcl136")
			// hydra.Conf.Vars().DB().OracleByConnStr("db", "hjjy/123456@orcl136")
			return
		}

		hydra.Conf.API(hydra.ByInstall)
		hydra.Conf.Vars().DB().OracleByConnStr("db", hydra.ByInstall)
	})

}
